#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：14.请求超时.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-11-20 14:27
'''
import requests

url = "https://www.google.com"

try:
    response = requests.get(url, timeout=1)
    print(response)
except Exception as e:
    print("请求超时：", e)
